#ifndef __DHT11_H
#define __DHT11_H



#include "rtthread.h"
#include "bsp_systick.h"
#include <stdint.h>

	
#define		DH11_Data_Pin						GPIO_Pin_0
#define 	DH11_Data_Port						GPIOB
#define 	DHT11_Data_APBxClock_CLK			RCC_APB2Periph_GPIOB

#define dht11_high 				GPIO_SetBits(DH11_Data_Port, DH11_Data_Pin)
#define dht11_low 				GPIO_ResetBits(DH11_Data_Port, DH11_Data_Pin)
#define Read_Data 				GPIO_ReadInputDataBit(DH11_Data_Port, DH11_Data_Pin)

//#define DHT11_Delay_us          SysTick_Delay_us
#define DHT11_Delay_us			Precise_Delay_us

void Get_temperature_humidity(uint32_t *temperature, uint32_t *humidity);

#endif




